package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: yhr
 * @Date: 2021-10-27 09:06
 */
@Data
public class UpdateStatusReq implements Serializable {
    @ApiModelProperty("id")
    @NotNull(message = "id不能为空")
    @Min(value = 0, message = "id不正确")
    private Long id;
    @ApiModelProperty("1营业中 -1已关闭")
    @Range(min = -1, max = 1,message = "状态不正确")
    private Byte status;
}
